package main

import "gopl/composite/struct02/common"
import "fmt"

func main() {
	p := common.Person{Name: "allen", Age: 19}
	fmt.Printf("%#v\n", p)
	fmt.Println(p.Name)
	fmt.Println(p.Age)
	// fmt.Println(p.hobby) // not ok
	// fmt.Println(p.sex)   // not ok
	q := common.CreatePerson("luffy", 18, "eat")
	fmt.Printf("%#v\n", q)
	fmt.Println(q.Name)
	fmt.Println(q.Age)
	// fmt.Println(q.hobby) // not ok
}
